package umacis.lwuitcomponent;

import umacis.lwuitcomponent.property.controller.Parameters;
import umacis.lwuitcomponent.property.controller.PropertyAssigner;
import umacis.lwuitcomponent.property.controller.PropertyGetterSetter;

import com.sun.lwuit.Component;




public class Property {
	Object parameter;
	public Property(int index, Object parameter) {
		this.index = index;
		this.parameter = parameter;
	}
	
	
	public Property(int index, int integer) {
		this.index = index;
		parameters.integer = integer;
//		setter = PropertyAssigner.getInstance().setter[index];
	}
	public int index;
	private Parameters parameters = null;
	public PropertyGetterSetter setter;
	
	public void applyParameters(Component cmp) {
		setter.set(cmp,parameters);
	}
	
	
}




